﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SGT.Model
{
    public class Mercaderia : INotifyPropertyChanged
    {
        private int _MercaderiaID;
        private string _Nombre;
        private double _Densidad;

        public Mercaderia()
        {
        }

        public int MercaderiaID
        {
            get { return _MercaderiaID; }
            set
            {
                _MercaderiaID = value;
                RaisePropertyChanged("MercaderiaID");
            }
        }

        public string Nombre
        {
            get { return _Nombre; }
            set
            {
                _Nombre = value;
                RaisePropertyChanged("Nombre");
            }
        }

        public double Densidad
        {
            get { return _Densidad; }
            set
            {
                _Densidad = value;
                RaisePropertyChanged("Densidad");
            }
        }





        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(
                    this,
                    new PropertyChangedEventArgs(propertyName)
                    );
            }
        }

        #endregion
    }
}
